package messageMeServer.server;

import java.io.*;
import java.util.Arrays;

import messageMeServer.manager.PackageManager;
import messageMeServer.model.UserDataBase;
import messageMeServer.view.MainForm;

public class Server {

	public static void main(String[] args) throws IOException {

		UserDataBase.initialize();

		if (Arrays.asList(args).contains("-gui")) {
			MainForm form = new MainForm();
			form.setVisible(true);
		}
		PackageManager manager = new PackageManager();
		manager.start();
	}
}
